package com.ruoyi.manager.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manager.mapper.TbeduWeekscoreMapper;
import com.ruoyi.manager.domain.TbeduWeekscore;
import com.ruoyi.manager.service.ITbeduWeekscoreService;
import com.ruoyi.common.core.text.Convert;

/**
 * 学生周考核Service业务层处理
 * 
 * @author L1hao
 * @date 2021-09-16
 */
@Service
public class TbeduWeekscoreServiceImpl implements ITbeduWeekscoreService 
{
    @Autowired
    private TbeduWeekscoreMapper tbeduWeekscoreMapper;

    /**
     * 查询学生周考核
     * 
     * @param fId 学生周考核主键
     * @return 学生周考核
     */
    @Override
    public TbeduWeekscore selectTbeduWeekscoreByFId(Long fId)
    {
        return tbeduWeekscoreMapper.selectTbeduWeekscoreByFId(fId);
    }

    /**
     * 查询学生周考核列表
     * 
     * @param tbeduWeekscore 学生周考核
     * @return 学生周考核
     */
    @Override
    public List<TbeduWeekscore> selectTbeduWeekscoreList(TbeduWeekscore tbeduWeekscore)
    {
        return tbeduWeekscoreMapper.selectTbeduWeekscoreList(tbeduWeekscore);
    }

    /**
     * 新增学生周考核
     * 
     * @param tbeduWeekscore 学生周考核
     * @return 结果
     */
    @Override
    public int insertTbeduWeekscore(TbeduWeekscore tbeduWeekscore)
    {
        return tbeduWeekscoreMapper.insertTbeduWeekscore(tbeduWeekscore);
    }

    /**
     * 修改学生周考核
     * 
     * @param tbeduWeekscore 学生周考核
     * @return 结果
     */
    @Override
    public int updateTbeduWeekscore(TbeduWeekscore tbeduWeekscore)
    {
        return tbeduWeekscoreMapper.updateTbeduWeekscore(tbeduWeekscore);
    }

    /**
     * 批量删除学生周考核
     * 
     * @param fIds 需要删除的学生周考核主键
     * @return 结果
     */
    @Override
    public int deleteTbeduWeekscoreByFIds(String fIds)
    {
        return tbeduWeekscoreMapper.deleteTbeduWeekscoreByFIds(Convert.toStrArray(fIds));
    }

    /**
     * 删除学生周考核信息
     * 
     * @param fId 学生周考核主键
     * @return 结果
     */
    @Override
    public int deleteTbeduWeekscoreByFId(Long fId)
    {
        return tbeduWeekscoreMapper.deleteTbeduWeekscoreByFId(fId);
    }
}
